"use strict";

const { Controller } = require("egg");

class adminLoginController extends Controller {
  async login() {
    const { ctx, app } = this;
    const data = await app.mysql.select("userlist");

    ctx.body = {
      code: 1,
      data,
    };
  }
}

module.exports = adminLoginController;
